package com.ddwl.schema.bo.shop;

import com.ddwl.schema.bo.goods.ItemRateBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2021/7/1 16:28
 */
@ApiModel("店铺评价bo")
@Getter
@Setter
public class ShopRateBo {

    /**
     * 店铺id
     */
    @NotEmpty(message = "店铺id不能为空")
    @ApiModelProperty(value = "店铺id")
    private String shopId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",hidden = true)
    private String userId;

    /**
     * 订单id
     */
    @NotEmpty(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id")
    private String orderId;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称",hidden = true)
    private String nickname;

    /**
     * 服务态度评分
     */
    @NotNull(message = "请给服务态度评分")
    @ApiModelProperty(value = "服务态度评分")
    private Integer attitudeScore;

    /**
     * 物流评分
     */
    @NotNull(message = "请给物流评分")
    @ApiModelProperty(value = "物流评分")
    private Integer logisticsScore;

    @Valid
    @Size(min = 1,message = "请对商品进行评价")
    @ApiModelProperty(value = "商品评价列表")
    private List<ItemRateBo> itemRateBoList;

}
